<div>
<?php
	$this->load->helper('form');
	echo form_open('Table/Save/'.$TableName.'/'.$PKFieldValue);
	echo 'ID: '.$PKFieldValue.'<br/>';
	if(isset($Records)) {
		$Row = $Records[0];
		reset($Columns);		foreach ($Row as $Key => $FieldValue) {
			if ($Key<>$PKFieldName) {
				echo form_label($Columns[key($Columns)]['ColumnCaption'],$Key);
				if (strcasecmp($Key,'UserModif')) {
					echo form_input($Key,$FieldValue)."<br>\n";
				} else {
					echo ': '.$FieldValue.'<br/>';
				}
			}
			next($Columns);
		}
		echo form_submit('BtnSave','Сохранить');
	}
	echo form_close();
?>

</div>
